package  com.pcbly.web.business.crm;
/**
* @author carl.song
* Copyright (c) 2010 Lightsoft, International.
* All rights reserved.
*
*/

import com.pcbly.web.bean.crm.CgthdProductBean;
import com.pcbly.web.business.BaseService;
import com.pcbly.web.components.hibernate.support.Page;

public interface CgthdProductService extends BaseService<CgthdProductBean> {

	CgthdProductBean getCgthdProductBeanById(String id) throws Exception;
	
	void removeCgthdProductBeanById(String id) throws Exception;
	
	void removeCgthdProductBeanByIds(String ids) throws Exception;
	
	CgthdProductBean saveCgthdProductBean(CgthdProductBean crm) throws Exception;
	
	CgthdProductBean updateCgthdProductBean(CgthdProductBean crm) throws Exception;
	
	Page<CgthdProductBean>  findCgthdProductBeanByCond(CgthdProductBean bean,
			Page<CgthdProductBean> page, String orderByName, boolean asc)
			throws Exception;
	void saveCgthdProductBeanExt(String sql) throws Exception;

	String findCgthdProductBeanExtCreate(String tableName) throws Exception;

	String findCgthdProductBeanExtEdit(String tableName, String id)
			throws Exception;

	String findCgthdProductBeanExtView(String tableName, String id)
			throws Exception;

	boolean getHasCgthdProductBeanExtData(String tableName, String id)
			throws Exception;
}